package com.itqf.static_proxy;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/14
 * @Time: 上午10:04
 */
public class MiddleProxy implements  RentHouse {

    RentHouse fangdong;

    public MiddleProxy(RentHouse rentHouse){
        this.fangdong = rentHouse;
    }


    @Override
    public void rentHose() {
        System.out.println("带租客看房.....");
        System.out.println("跟租客签合同.....");
        System.out.println("收钱...");
        fangdong.rentHose();

        System.out.println("维修....");

    }
}
